from flask import Blueprint, jsonify
from util.yml_util import read_fund_yml

api_bp = Blueprint('api', __name__, url_prefix='/api')

# # API接口：获取所有基金（JSON格式）
# @api_bp.route('/funds')
# def api_funds():
#     config = read_fund_yml(MY_FUND_YML)
#     # 过滤掉注释行
#     funds = {k: v for k, v in config.items() if not k.startswith('#')}
#     return jsonify(funds)